#include <stdio.h>
#include <string.h>

int s1[10], s2[10], an[10];
int to[10];
char ss[100];

// 123+12=13

void count()
{
	int len,i;
	len=s1[0]>s2[0]?s1[0]:s2[0];
	for (i=1;i<=len;i++)
	{
		to[i]+=s1[i]+s2[i];
		if (to[i]>9)
		{
			to[i+1]++;
			to[i]-=10;
		}
	}
	if (to[len+1]!=0) len++;
	to[0]=len;
}

int check()
{
	int i,len;
	len=an[0]>to[0]?an[0]:to[0];
	for (i=1;i<=len;i++)
		if (an[i]!=to[i])
			return 0;
	return 1;

}
void change()
{
	int i,j,a,b,len;
	len=strlen(ss);
	for (a=0;a<len;a++)
		if (ss[a]=='+') break;
	for (b=0;b<len;b++)
		if (ss[b]=='=') break;
	
	for (i=0;i<a;i++)
		s1[i+1]=ss[i]-'0';
	s1[0]=a;
	a++;
	for (i=a;i<b;i++)
		s2[i-a+1]=ss[i]-'0';
	
	s2[0]=b-a;
	b++;
	for (i=b;i<len;i++)
		an[i-b+1]=ss[i]-'0';
	an[0]=len-b;
/*	
	for (i=1;i<=s1[0];i++) printf("%d",s1[i]);
	printf("\n");
	for (i=1;i<=s2[0];i++) printf("%d",s2[i]);
	printf("\n");
	for (i=1;i<=an[0];i++) printf("%d",an[i]);
	printf("\n");
*/
	

}


main()
{


	while (1)
	{
		scanf("%s", ss);
	
		memset(s1,0,sizeof(s1));
		memset(s2,0,sizeof(s2));
		memset(an,0,sizeof(an));
		memset(to,0,sizeof(to));
		change();
		count();
		if (check()) printf("True\n");
		else printf("False\n");

		if (s1[0]==1 &&  s1[1]==0 && s2[0]==1 &&  s2[1]==0
			 && an[0]==1 &&  an[1]==0) break;

	}

	return 0;
}
